package org.jdesktop.swingx.table.model;

import javax.swing.table.TableModel;

public class RowReIndexTableModelWapper extends
		AbstractRowReIndexTableModelWapper<TableModel> {

	int[] rowIndexs;
	
	public RowReIndexTableModelWapper(TableModel t) {
		super(t);
	}

	@Override
	public int getRowIndex(int wapperRowIndex) {
		if(rowIndexs==null)
			return wapperRowIndex;
		return rowIndexs[wapperRowIndex];
	}
	
	public void setRowIndexs(int[] rowIndexs){
		this.rowIndexs=rowIndexs;
	}
	
}
